﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Script.Serialization;

namespace MyShowsPlugin
{
    //creating objects for json deserialization
    public class UserProfile
    {
        public string login { get; set; }
        public string avatar { get; set; }
        public string WastedTime { get; set; }
        public string gender { get; set; }
        public Friends[] friends { get; set; }
        public IDictionary<string, decimal> stats { get; set; }

    }
    public class Friends
    {
        public string login { get; set; }
        public string avatar { get; set; }
        public string WastedTime { get; set; }
        public string gender { get; set; }
    }
    public class Stats
    {
        public decimal watchedHours { get; set; }
        public decimal remainingHours { get; set; }
        public decimal watchedEpisodes { get; set; }
        public decimal remainingEpisodes { get; set; }
        public decimal totalEpisodes { get; set; }
        public decimal totalDays { get; set; }
        public decimal totalHours { get; set; }
        public decimal remainingDays { get; set; }
        public decimal watchedDays { get; set; }

    }

    public class MyShowsSeries
    {
        public int id { get; set; }
        public string title { get; set; }
        public string ruTitle { get; set; }
        public string status { get; set; }
        public string country { get; set; }
        public string started { get; set; }
        public string ended { get; set; }
        public string year { get; set; }
        public int? kinopoiskid { get; set; }
        public int? tvrageid { get; set; }
        public string imdbid { get; set; }
        public int? watching { get; set; }
        public int? voted { get; set; }
        public float? rating { get; set; }
        public int? runtime { get; set; }
        public Dictionary<string, Episode> episodes { get; set; }
        public List<int> genres { get; set; }
        public int showid { get; set; }
        public string showStatus { get; set; }
        public string watchStatus { get; set; }
        public int? watchedEpisodes { get; set; }
        public int? totalEpisodes { get; set; }
        public string image { get; set; }
    }
    public class Episode
    {
        public int id { get; set; }
        public string title { get; set; }
        public string airDate { get; set; }
        public string shortName { get; set; }
        public string tvrageLink { get; set; }
        public string image { get; set; }
        public int showId { get; set; }
        public int seasonNumber { get; set; }
        public int episodeNumber { get; set; }
        public string productionNumber { get; set; }
        public int sequenceNumber { get; set; }

    }
    public class genres
    {
        public int key { get; set; }
        public int value { get; set; }
    }
    public class WatchedEps
    {
        public int id { get; set; }
        public string watchDate { get; set; }
    }
    public class MyShowsEpisode
    {
        public int seriesID { get; set; }
        public int episode { get; set; }
    }
}
        


